<template>
  <el-empty :image-size="100" class="empty">
    <template #image>
      <img src="@/assets/icon/empty.svg" alt="">
    </template>
    <template #description>
      <span>{{ tip || '暂无数据' }}</span>
    </template>
  </el-empty>
</template>
<script>
export default {
  name: 'empty-box',
  props: ['tip']
}
</script>

<style scoped lang="scss">
.empty {
  width: 100%;
  height: 100%;
  color: #db1241;
  margin: auto;
  display: flex;
  justify-content: center;
}
</style>
